
export type ProductType = {
    id: string;
    product_line?: string;
    product_category?: string;
    product_name?: string;
    product_standard?: string;
    packing_unit?: string;
    minimum?: number;
    standard_price?: number;
    registration?: string;
    num?:number;
    pIndex?:React.Key;
    discount?:number;
    numbs?:number;
    sentNum?:number;
    source?:number;
    batchNumber?:string;
    snap?:number;
    is_gifts?:number;
    choose?:boolean;
    isTriggerGift?:string;
    nowNumbs?:number;
    allocatNumbs?:number;
    money?:number;
    product_price?:string;
    select_price?:any[];
    price?:number;
    manufacturer?:any
  };

  export type SaleTeam={
    id:string;
    loginName:string;
    userId:string;
    name:string;
    phone:string;
    mail:string;
    part:string;
    pId?:string;
    pName:string;
    areas?:string[];
    provinces:string;
    city:string; 
  }

  export type Customer={
    id?:string;
    bh?:string;
    name?:string;
    cusENName?:string;
    cusSubName?:string;
    cusENSubName?:string;
    status?:number;
    provinces:string;
    city:string;
    address?:string;
    zipCode?:string;
    level?:string;
    grade?:string;
    hosFlag?:string;
    termFlag?:string;
    cusType?:string;
    armyHosFlag?:number;
    armHostName?:string;
    armGroupName?:string;
    remarks?:string;
    phone?:string;
    insurance?:string;
    areas?:string[];
  }

  export type Dealer={
    id?:string;
    cnName?:string;
    enName?:string;
    provinces?:string;
    city?:string;
    area?:string;
    office_address?:string;
    legal_person?:string;
    mPerson?:string;
    qPerson?:string;
    mobile?:string;
    zipCode?:string;
    money?:number;
    creditFlag?:number;
    salePerson?:string;
    level?:number;
    phone?:string;
    mail?:string;
    saled?:number;
    spinFlag:boolean;
    status?:number;
    provinces_label?:string;
    city_label?:string;
  }

  export type AddressInfo={
    id?:number;
    address:string;
    province?:string;
    city?:string;
    area?:string;
    phone?:string;
    name?:string;
    zipCode?:string;
  }

  export type OrderInfo={
    id?:string;
    order_number?:string;
    dealerName?:string;
    dealerId?:string;
    order_time?:string
    delivery_time?:string
    actual_amount?:number
    total?:number
    status?:number
  }

  /**
   * 返利相关
   */
  export type RebateItem={
    id?:string;
    dealerId?:string;
    dealerName?:string;
    date?:string;
    rebate_time?:string;
    amount?:string;
    action?:string;
  }


  export type NormalListParam={
    pageSize?: number;
    current?: number;
    filter?: Record<string, any[]>;
    sorter?: Record<string, any>;
  }

  export type TreeData={
    title?:string,
    value?: string,
    disabled?:boolean,
    children?:TreeData[],
  }


  export type GiftType = {
    id: string;
    num?: number;
    giftNum?: number;
  };

  
  export type WarehouseType ={
    id: string;
    name?:string;
    code?:string;
    remark?:string;
  }

  export type UserType={
    id: string;
    userName?:string;
    userRole?:string;
    userMail?:string;
    userPhone?:string;
  }

  export type UserRoleType={
    id:string;
    label:string;
    value:string;
  }

  export type TicketType={
    id:string;
    
  }

  export type NotifyItem={
    id:string;
    title:string;
    publisherName:string;
    createTime:string;
  }

  export type RecvAddress={
    recv_id?:string;
    area:string;
    city?:string;
    provinces?:string;
    recv_address?:string;
    recv_consignee?:string;
    recv_default?:string;
    recv_phone?:string;
    recv_postcode?:string;
    areas?:string[];
  }
